package handler

import (
    "cade/src/bot/handler/c_gs"
    "cade/src/bot/handler/c_gw"
    "cade/src/bot/msg"
)

func Init() {
    msg.Handler(1003, c_gw.GW_Login_R)
    msg.Handler(5000, c_gs.GS_LoginError)
    msg.Handler(5001, c_gs.GS_UserInfo)
    msg.Handler(5003, c_gs.GS_TimeSync_R)
    msg.Handler(5100, c_gs.GS_ChatNewText)
    msg.Handler(5101, c_gs.GS_ChatPlayerEnter)
    msg.Handler(5102, c_gs.GS_ChatPlayerLeave)
    msg.Handler(5201, c_gs.GS_ChatGetRoomList_R)
    msg.Handler(5203, c_gs.GS_ChatEnterRoom_R)
    msg.Handler(5205, c_gs.GS_ChatLeaveRoom_R)
    msg.Handler(5207, c_gs.GS_ChatCreateRoom_R)
    msg.Handler(5209, c_gs.GS_ChatSendText_R)
}
